package io.renren.modules.app.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 会员钱包表
 * 
 *
 * @date 2022-04-21 10:57:24
 */
@Data
@TableName("tb_member_purse")
public class MemberPurseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 钱包id
	 */
	@TableId
	private Long purseId;
	/**
	 * 可提现金额
	 */
	private BigDecimal withdrawalsAmount;
	/**
	 * 冻结金额
	 */
	private BigDecimal freezeAmount;
	/**
	 * 会员id
	 */
	private Long userId;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 修改时间
	 */
	private Date updateTime;
	/**
	 * 状态(0删除  1存在)
	 */
	private Integer status;

	/**
	 * 用户总收益
	 */
	@TableField(exist = false)
	private BigDecimal totalRevenue;

}
